package com.v1.video.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import android.text.TextUtils;

/**
 * 二期的视频属性类
 * @author fengtao
 *
 */
public class VPaikeVideoInfo implements Serializable {
//    {
//        "result": {
//            "code": "0",
//            "message": "执行成功"
//        },
//        "videoId": "0000000001",
//        "userId": "2842",
//        "videoUrl": "http://www.baidu.com",
//        "imgUrl": "http://baiduimg.com",
//        "detail": "老人扶摔倒小伙被讹300元老人扶摔倒小伙被讹300元老人扶摔倒小伙被讹300元老人扶摔倒小伙被讹300元",
//        "userName": "tom",
//        "create_time": "2014-03-05 15:57:30.0",
//        "scenario": "上班时",
//        "address": "北京  海淀区",
//        "title": "百度",
//        "praise": "91",
//        "comments": "2",
//        "userImg": "/imgs/img_2842_1366254578839.jpg",
//        "region": "江西 南昌市",
//        "sex": "保密"
//          "about_list": []
//    }
    private ResultInfo result;
    private String videoId;
    private String userId;
    private String videoUrl;
    private String imgUrl;
    private String detail;
    private String userName;
    private String userDesc;//个性签名
    private String create_time;
    private String scenario;
    private String address;
    private String title;
    private String praise;
    private String comments;    //评论数量
    private String forward;     //转发数量
    private String userImg;     //相对视频地址，需要网址
    private String region; 
    private String sex;
    private String stype;        //0=来自v1,1=来自自己
    private String focusOntype;     //0.未关注  1已关注 2反关注  3相互关注
    private List<VideoForPaikeInfo> about_list;
    private boolean isbrowsed;      //是否浏览过
    private String virtualAddress = "";//虚拟地理位置
    private String playnum;
    private ArrayList<ThemeInfo4> topics;
    private String wabSiteUrl; //网站内容地址
    
    public VPaikeVideoInfo(VideoDetailInfoNew3 paikeVideo){
    	this.videoId = ""+paikeVideo.getVideoId();
    	this.userId = ""+paikeVideo.getUserId();
    	this.videoUrl = paikeVideo.getVideoUrl();
    	this.imgUrl = paikeVideo.getImgUrl();
    	this.detail = paikeVideo.getDetail();
    	this.create_time = ""+paikeVideo.getCreateTime();
    	this.scenario = paikeVideo.getScenario();
    	this.address = paikeVideo.getAddress();
    	this.title = paikeVideo.getTitle();
    	this.praise = ""+paikeVideo.getPraise();
    	this.comments = ""+paikeVideo.getComments();
    	this.forward = ""+paikeVideo.getForward();
    	this.playnum = ""+paikeVideo.getPlayNum();
    	this.stype = paikeVideo.getStype();
    	if(paikeVideo.getUserInfo() != null){
			if (!TextUtils.isEmpty(paikeVideo.getUserInfo().getNickname())
					&& !paikeVideo.getUserInfo().getNickname().equals("null")) {
				this.userName = paikeVideo.getUserInfo().getNickname();
			} else if(!TextUtils.isEmpty(paikeVideo.getUserInfo().getUserName())){
				this.userName = paikeVideo.getUserInfo().getUserName();
			}
    		this.userImg = paikeVideo.getUserInfo().getUserImg();
        	this.region = ""+paikeVideo.getUserInfo().getRegion();
        	this.sex = paikeVideo.getUserInfo().getSex();
    	}
//    	this.focusOntype = paikeVideo.getFocusOntype();
    	this.virtualAddress = paikeVideo.getVirtualAddress();
//    	this.topics = paikeVideo.getTopics();
    	this.wabSiteUrl = paikeVideo.getWabSiteUrl();
    }
    
    public VPaikeVideoInfo(VideoDetailInfoNew4 paikeVideo){
    	this.videoId = paikeVideo.getVideoId();
    	this.userId = paikeVideo.getUserId();
    	this.videoUrl = paikeVideo.getVideoUrl();
    	this.imgUrl = paikeVideo.getImgUrl();
    	this.detail = paikeVideo.getDetail();
    	this.create_time = paikeVideo.getCreateTime();
    	this.scenario = paikeVideo.getScenario();
    	this.address = paikeVideo.getAddress();
    	this.title = paikeVideo.getTitle();
    	this.praise = ""+paikeVideo.getPraise();
    	this.comments = ""+paikeVideo.getComments();
    	this.forward = ""+paikeVideo.getForward();
    	this.playnum = ""+paikeVideo.getPlayNum();
    	if(paikeVideo.getUserInfo() != null){
			if (!TextUtils.isEmpty(paikeVideo.getUserInfo().getNickname())
					&& !paikeVideo.getUserInfo().getNickname().equals("null")) {
				this.userName = paikeVideo.getUserInfo().getNickname();
			} else if(!TextUtils.isEmpty(paikeVideo.getUserInfo().getUserName())){
				this.userName = paikeVideo.getUserInfo().getUserName();
			}
    		this.userImg = paikeVideo.getUserInfo().getUserImg();
        	this.region = ""+paikeVideo.getUserInfo().getRegion();
        	this.sex = paikeVideo.getUserInfo().getSex();
        	this.userDesc = paikeVideo.getUserInfo().getDetail();
    	}
//    	this.focusOntype = paikeVideo.getFocusOntype();
    	this.virtualAddress = paikeVideo.getVirtualAddress();
//    	this.topics = paikeVideo.getTopics();
    	this.wabSiteUrl = paikeVideo.getWabSiteUrl();
    }
    
    public boolean isIsbrowsed() {
        return isbrowsed;
    }
    public void setIsbrowsed(boolean isbrowsed) {
        this.isbrowsed = isbrowsed;
    }
    public ResultInfo getResult() {
        return result;
    }
    public void setResult(ResultInfo result) {
        this.result = result;
    }
    public String getVideoId() {
        return videoId;
    }
    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }
    public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getVideoUrl() {
        return videoUrl;
    }
    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }
    public String getImgUrl() {
        return imgUrl;
    }
    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
    public String getDetail() {
        return detail;
    }
    public void setDetail(String detail) {
        this.detail = detail;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getCreate_time() {
        return create_time;
    }
    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }
    public String getScenario() {
        return scenario;
    }
    public void setScenario(String scenario) {
        this.scenario = scenario;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getPraise() {
        return praise;
    }
    public void setPraise(String praise) {
        this.praise = praise;
    }
    public String getUserImg() {
        return userImg;
    }
    
    public String getWabSiteUrl() {
		return wabSiteUrl;
	}

	public void setWabSiteUrl(String wabSiteUrl) {
		this.wabSiteUrl = wabSiteUrl;
	}

	/**
     * //相对视频地址，需要网址
     * @param userImg
     */
    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }
    public String getRegion() {
        return region;
    }
    public void setRegion(String region) {
        this.region = region;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getComments() {
        return comments;
    }
    public void setComments(String comments) {
        this.comments = comments;
    }
    public String getForward() {
        return forward;
    }
    public void setForward(String forward) {
        this.forward = forward;
    }
    public List<VideoForPaikeInfo> getAbout_list() {
        return about_list;
    }
    public void setAbout_list(List<VideoForPaikeInfo> about_list) {
        this.about_list = about_list;
    }
    public String getFocusOntype() {
        return focusOntype;
    }
    public void setFocusOntype(String focusOntype) {
        this.focusOntype = focusOntype;
    }
    public String getStype() {
        return stype;
    }
    public void setStype(String stype) {
        this.stype = stype;
    }

	public String getVirtualAddress() {
		return virtualAddress;
	}

	public void setVirtualAddress(String virtualAddress) {
		this.virtualAddress = virtualAddress;
	}

	public String getPlaynum() {
		return playnum;
	}

	public void setPlaynum(String playnum) {
		this.playnum = playnum;
	}

	public ArrayList<ThemeInfo4> getTopics() {
		return topics;
	}

	public void setTopics(ArrayList<ThemeInfo4> topics) {
		this.topics = topics;
	}

	public String getUserDesc() {
		return userDesc;
	}

	public void setUserDesc(String userDesc) {
		this.userDesc = userDesc;
	}
    
}
